package cn.tjie.sys.service.impl;

import cn.tjie.basic.service.impl.BaseServiceImpl;
import cn.tjie.sys.domain.SystemdictionaryDetail;
import cn.tjie.sys.domain.SystemdictionaryType;
import cn.tjie.sys.mapper.SystemdictionaryDetailMapper;
import cn.tjie.sys.service.SystemdictionaryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class SystemdictionaryTypeServiceImpl extends BaseServiceImpl<SystemdictionaryType> implements SystemdictionaryTypeService {
    @Autowired
    private SystemdictionaryDetailMapper systemdictionaryDetailMapper;
    @Override
    public void del(Long id) {
        systemdictionaryDetailMapper.delBytypes_id(id);

            super.del(id);
    }

    @Override
    public void patchDelete(List<Long> ids) {
        for(Long id : ids) {
            systemdictionaryDetailMapper.delBytypes_id(id);
        }
        super.patchDelete(ids);
    }
}
